import Upload from '@utils/upload';
const request = new Upload('/api/file/');

/**
 *
 */
export const upload = (code, file, config) => {
  return request(`upload/${code}`, file, config);
};
